package com.yanxiaohui.springbootmybatis.cotroller;

import com.yanxiaohui.springbootmybatis.entity.ScoreRecord;
import com.yanxiaohui.springbootmybatis.service.ScoreRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description TODO
 * @Author： yanxh<br>
 * @Date 2019/11/7 14:05<br>
 * @Version 1.0<br>
 */
@RestController
@RequestMapping("/scoreRecord")
public class ScoreRecordController {

    @Autowired
    ScoreRecordService scoreRecordService;

    @RequestMapping("/scoreRecordList")
    public List<ScoreRecord> scoreRecordList(){
        return scoreRecordService.scoreRecordList();
    }
}
